/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Main.java
 *
 * Created on 2011-3-25, 22:21:02
 */

package org.sluggard.tangela.core;

import org.sluggard.tangela.sina.SinaCheckBox;
import org.sluggard.tangela.tencent.TencentCheckBox;

/**
 * 
 * @author Frank
 */
public class MainFrameView extends javax.swing.JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/** Creates new form Main */
	public MainFrameView() {
		initComponents();
	}

	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	private void initComponents() {

		tellAboutLabel = new javax.swing.JLabel();
		jScrollPane1 = new javax.swing.JScrollPane();
		jSeparator1 = new javax.swing.JSeparator();
		jMenuBar1 = new javax.swing.JMenuBar();
		fileMenu = new FileMenu();
		// exitMenuItem = new javax.swing.JMenuItem();
		editMenu = new EditMenu();
        beforeCountLabel = new javax.swing.JLabel();
        countLabel = new CountLabel();
        afterCountLabel = new javax.swing.JLabel();
		inputText = new InputText();
		submitButton = new SubmitButton();
		sinaCheckBox = new SinaCheckBox();
		tencentCheckBox = new TencentCheckBox();

		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
		setTitle("微博天使");
		setResizable(false);

		tellAboutLabel.setText("有什么想告诉大家:");

		// inputText.setColumns(20);
		// inputText.setRows(5);
		jScrollPane1.setViewportView(inputText);

        beforeCountLabel.setText("你还可以输入:");

        afterCountLabel.setText("字");

		jMenuBar1.add(fileMenu);
		jMenuBar1.add(editMenu);

		setJMenuBar(jMenuBar1);

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(sinaCheckBox)
                        .addContainerGap())
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(tencentCheckBox)
                        .addContainerGap())
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(tellAboutLabel))
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addComponent(beforeCountLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(countLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(afterCountLabel)
                            .addGap(30, 30, 30)
                            .addComponent(submitButton)
                            .addContainerGap()))))
                        .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(tellAboutLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(submitButton)
                    .addComponent(beforeCountLabel)
                    .addComponent(countLabel)
                    .addComponent(afterCountLabel))
                .addGap(12, 12, 12)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(sinaCheckBox).addComponent(tencentCheckBox)
                .addContainerGap(58, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>

	/**
	 * @param args
	 *            the command line arguments
	 */
	public static void main(String args[]) {
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				MainFrameView mainSelf = new MainFrameView();
				Container.setMainSelf(mainSelf);
				mainSelf.setVisible(true);
				
			}
		});
	}

	// Variables declaration - do not modify
    private javax.swing.JLabel afterCountLabel;
    private javax.swing.JLabel beforeCountLabel;
    private javax.swing.JLabel countLabel;
	private javax.swing.JMenu editMenu;
	private javax.swing.JMenu fileMenu;
	private javax.swing.JTextArea inputText;
	private javax.swing.JMenuBar jMenuBar1;
	private javax.swing.JScrollPane jScrollPane1;
	private javax.swing.JSeparator jSeparator1;
	private javax.swing.JButton submitButton;
	private javax.swing.JLabel tellAboutLabel;
	private javax.swing.JCheckBox sinaCheckBox;
	private javax.swing.JCheckBox tencentCheckBox;
	// End of variables declaration
	javax.swing.JLabel getAfterCountLabel() {
		return afterCountLabel;
	}

	javax.swing.JLabel getBeforeCountLabel() {
		return beforeCountLabel;
	}

	javax.swing.JLabel getCountLabel() {
		return countLabel;
	}

	javax.swing.JMenu getEditMenu() {
		return editMenu;
	}

	javax.swing.JMenu getFileMenu() {
		return fileMenu;
	}

	javax.swing.JTextArea getInputText() {
		return inputText;
	}

	javax.swing.JMenuBar getjMenuBar1() {
		return jMenuBar1;
	}

	javax.swing.JScrollPane getjScrollPane1() {
		return jScrollPane1;
	}

	javax.swing.JSeparator getjSeparator1() {
		return jSeparator1;
	}

	javax.swing.JCheckBox getSinaCheckBox() {
		return sinaCheckBox;
	}

	javax.swing.JButton getSubmitButton() {
		return submitButton;
	}

}
